

#include "adc.h"
#include "adc_app.h"
#include "log.h"

adc_value adc_value_st;

void adc_get(void)
{
    adc_value_st.adc1_ch1 = ADC_GetData(ADC1, ADC1_Channel_01_PA0);
    adc_value_st.adc1_ch2 = ADC_GetData(ADC1, ADC1_Channel_02_PA1);
#if 0
    LOG_DEBUG("ADC1_Channel_01_PA0 %d\r\n", ADC_GetData(ADC1, ADC1_Channel_01_PA0));
    LOG_DEBUG("ADC1_Channel_02_PA1 %d\r\n", ADC_GetData(ADC1, ADC1_Channel_02_PA1));
#endif

}